<template>
	<view class="flex w-max">
		<view class="">
			<u-avatar size="124" :src="$user.avatar_img || ''" :showSex="!!$user.sex"
				:sex-icon="$user.sex == 2 ? 'man' : $user.sex == 1 ? 'woman' : 'account'" />
		</view>
		<view class="pl24 flex1">
			<view class="fw-w fs30">{{ $user.name || "" }}</view>
			<view class="mt10">手机号：{{ $user.mobile || '' }}</view>
			<view class="flex mt10">
				<image src="/static/img/index/ysm.png" v-if="$user.is_name_auth==1" class="w116 h36 mr20" mode="" />
				<view class="color-999 fs24" v-else @click.stop="is_name_auth">
					实名{{$list('name_auth',$user.is_name_auth)}}</view>
				<image src="/static/img/index/hsrz.png" v-if="$user.is_nurse_auth==1" class="w136 h36" mode="" />
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: "userInfo",
		data() {
			return {

			};
		},
		methods: {
			is_name_auth() {
				if (this.$user.is_name_auth == -1) {
					this.$jump('/pages/my/set/autonym')
					return false
				}
				return true
			}
		}
	}
</script>

<style lang="scss">

</style>